package com.svs.quartz.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.svs.common.base.BaseEntity;

/**
 * 数据同步组表 wis_data_group
 * 
 * @author 杜建桥
 * @date 2019-02-16
 */
public class WisDataGroup extends BaseEntity<WisDataGroup> {

	private static final long serialVersionUID = 1L;

	/** 主键 */
	private Long id;

	/** 组名 */
	private String groupName;

	/** 同步数据源ID */
	private Long sourceaId;

	/** 同步数据源名称 */
	private String sourceaName;

	/** 目标数据源ID */
	private Long sourcebId;

	/** 目标数据源名称 */
	private String sourcebName;

	/** 同步表 */
	private String tabName;

	/** 目标表 */
	private String targetName;

	/** 同步策略 0 同步表数据写入目标表 1 目标表数据写入同步表 2 相互写入 ***/
	private Integer syncWay;

	/** 状态 */
	private Integer state;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setSourceaId(Long sourceaId) {
		this.sourceaId = sourceaId;
	}

	public Long getSourceaId() {
		return sourceaId;
	}

	public void setSourceaName(String sourceaName) {
		this.sourceaName = sourceaName;
	}

	public String getSourceaName() {
		return sourceaName;
	}

	public void setSourcebId(Long sourcebId) {
		this.sourcebId = sourcebId;
	}

	public Long getSourcebId() {
		return sourcebId;
	}

	public void setSourcebName(String sourcebName) {
		this.sourcebName = sourcebName;
	}

	public String getSourcebName() {
		return sourcebName;
	}

	public void setTabName(String tabName) {
		this.tabName = tabName;
	}

	public String getTabName() {
		return tabName;
	}

	public void setTargetName(String targetName) {
		this.targetName = targetName;
	}

	public String getTargetName() {
		return targetName;
	}

	public Integer getSyncWay() {
		return syncWay;
	}

	public void setSyncWay(Integer syncWay) {
		this.syncWay = syncWay;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getState() {
		return state;
	}

	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId())
				.append("groupName", getGroupName()).append("sourceaId", getSourceaId())
				.append("sourceaName", getSourceaName()).append("sourcebId", getSourcebId())
				.append("sourcebName", getSourcebName()).append("tabName", getTabName())
				.append("targetName", getTargetName()).append("createBy", getCreateBy())
				.append("createTime", getCreateTime()).append("updateBy", getUpdateBy())
				.append("updateTime", getUpdateTime()).append("state", getState()).toString();
	}
}
